<template>
  <el-dropdown trigger="click" :hide-on-click="false">
    <span class="el-dropdown-link">
      <el-button size="medium" class="el-icon-menu" plain></el-button>
    </span>
    <el-dropdown-menu slot="dropdown">
      <el-dropdown-item v-for="item in isShow" :key="item.label">
        <el-checkbox v-model="item.value" :disabled="item.disable" @change="changeCheckbox">{{ item.label }}</el-checkbox>
      </el-dropdown-item>
    </el-dropdown-menu>
  </el-dropdown>
</template>

<script>
export default {
  props: {
    isShow: {
      type: Array
    }
  },
  methods: {
    changeCheckbox () {
      this.$emit('update:isShow', this.isShow)
    }
  }
}
</script>

<style>

</style>